package com.nuaa.shopping.service;

import com.nuaa.shopping.entity.User;
import com.nuaa.shopping.exception.UserDiabledException;
import com.nuaa.shopping.exception.UserNotFoundException;
import com.nuaa.shopping.exception.UsernameExistsException;

public interface UserService {
	
	public void register(User user) throws UsernameExistsException;

	
	public User login(User user) throws UserNotFoundException, UserDiabledException;
}
